package cn.wolfcode.luowowo.search.repository;

import cn.wolfcode.luowowo.search.template.DestinationTemplate;
import cn.wolfcode.luowowo.search.template.TravelTemplate;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ITravelRepository extends ElasticsearchRepository<TravelTemplate,Long> {
    /**
     * jpa自定方法
     * 根据关键字在es查询所有游记模板对象
     * @param keyword
     * @return
     */
    List<TravelTemplate> findByDestName(String keyword);
}
